package cn.tedu.spring2205.week02.config;

import cn.tedu.spring2205.week02.beans.CustomService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@ComponentScan("cn.tedu.spring2205.week02")
@EnableAspectJAutoProxy
public class Week02Config {

    @Bean(initMethod = "customInit",destroyMethod = "customDes")
    public CustomService customService(){
        return new CustomService();
    }
}
